package com.flashshe.ds.linear
{
	import com.flashshe.ds.linear.AbstractLinear;
	
	public class AbstractQueue extends AbstractLinear implements IQueue
	{
		public function AbstractQueue()
		{
			super();
		}
		
		public function enqueue(v:Object):void
		{
		}
		
		public function peek():Object
		{
			return null;
		}
		
		public function dequeue():Object
		{
			return null;
		}
		
		public override function add(v:Object):void
		{
			enqueue(v);
		}									
		
		public override function getValue():Object
		{
			return peek();
		}
		
		
		public override function remove():Object
		{
			return dequeue();
		}	
	}
}